/*
 * BonusGenerator.h
 *
 *  Created on: Jun 13, 2012
 *      Author: gonzalo
 */

#ifndef BONUSGENERATOR_H_
#define BONUSGENERATOR_H_

#include "../common/Threads/Thread.h"
#include "Widget.h"
#include "widgets/bonus/Bonus.h"
#include "Asteroide.h"

class BonusGenerator {
public:
	static Bonus* generateBonus(Asteroide* deadAsteroide, Widget* widget);

protected:
	static BonusType getBonusTypeByProbabilty(float value,std::list< std::pair<BonusType,float>* >* probability);

	static Bonus* createBonus(BonusType bonus,Asteroide* deadAsteroide,Widget* widget);

};

#endif /* BONUSGENERATOR_H_ */
